home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / loa_and_the_island.swf / scripts / DefineSprite_772 / frame_12 / PlaceObject2_622_194 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2008-03-17  |  495b  |  14 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.paused == false and this.hitTest(_root.lavafilter))
  3.    {
  4.       if(this.hitTest(_root.level.sprite._x + _root.level._x,_root.level.sprite._y + _root.level._y - 10,true) and _root.level.sprite._currentframe > 1)
  5.       {
  6.          move = random(_root.level.sprite.speed * 4 + 1) - _root.level.sprite.speed * 2;
  7.       }
  8.       _rotation = _rotation + move;
  9.       move += (init - _rotation) / 10;
  10.       move /= 1.1;
  11.       move += random(3) - 1;
  12.    }
  13. }
  14.